package views
{
	import main.ViewSubBase;
	
	import panel.background.BackgroundPanel;
	import inerface.IBackgroundPanel;
	
	public class BackgroundView extends ViewSubBase
	{
		private var _panel:IBackgroundPanel;
		
		public function BackgroundView()
		{
		}
		
		public override function show():void
		{
			render();
		}
		
		protected override function render():void
		{
			if(_panel == null){
				_panel = new BackgroundPanel();
				_panel.init(view.layout.stage,resourceLoader,this.lang,view.uri);
				_panel.addBackground("assets/image/huibeijing.png");
				
				this.addView(_panel);
			}
		}
		
		public override function close():void
		{
			
		}
	}
}